package com.example.disinfestation.mapper;

import com.example.disinfestation.entity.WxUser;

import java.util.List;

import com.example.disinfestation.entity.example.WxUserExample;
import org.apache.ibatis.annotations.Param;

public interface WxUserMapper {
    int countByExample(WxUserExample example);

    int deleteByExample(WxUserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(WxUser record);

    int insertSelective(WxUser record);

    WxUser selectByExample(String example);

    WxUser selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") WxUser record, @Param("example") WxUserExample example);

    int updateByExample(@Param("record") WxUser record, @Param("example") WxUserExample example);

    int updateByPrimaryKeySelective(WxUser record);

    int updateByPrimaryKey(WxUser record);

//保存微信用户信息
    void insertWxUser(String username, String avatar, String wxOpenid);

    WxUser selectByid(@Param("wxOpenid") String wxOpenid);

    void updateWxUser(String username, String avatar, String wxOpenid);
}